﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class OneExam : MonoBehaviour {
    public Image m_Background;
    public Text m_TitleText;
    public string m_Editor;
	

    public void SetState(bool isOn) {
        if (isOn) {
            m_Background.color = Color.gray;
        } else {
            m_Background.color = Color.white;
        }
    }

    public void OnClick() {
        NewExamMgr.s_Instance.OnOneExamClick(this);
    }
    public void Init(string stem,string editor) {
        m_TitleText.text = stem;
        m_Editor = editor;
    }
}
